home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
hity wydania
/
trueSpace 7.6
/
tS761B8Std.exe
/
{app}
/
Scripts
/
ScriptCommands
/
onnewscene.xml
< prev
Wrap
Extensible Markup Language
|
2008-06-10
|
873b
|
21 lines
<?xml version="1.0" encoding="utf-8" ?>
<SCRIPT Name="OnNewScene" Type="command" Description="on new scene cmd" GUID = "{D8E2CC8D-9AA7-43c6-83E0-F68C42498AD7}">
<SCRIPT_CODE><![CDATA[
/*
This command is called after new scene is created.
Add custom initialization code here
*/
function Execute(ret)
{
rosDir = System.GetMainDir();
var sceneRoot = Space.CurrentScene();
RsFileIO.LoadObject( rosDir + '\\scripts\\preObjects\\light01.rsobj', sceneRoot);
RsFileIO.LoadObject( rosDir + '\\scripts\\preObjects\\light02.rsobj', sceneRoot);
RsFileIO.LoadObject( rosDir + '\\scripts\\preObjects\\light03.rsobj', sceneRoot);
RsFileIO.LoadObject( rosDir + '\\scripts\\preObjects\\light04.rsobj', sceneRoot);
RsFileIO.LoadObject( rosDir + '\\scripts\\preObjects\\Camera1.rsobj', sceneRoot);
}
]]></SCRIPT_CODE>
</SCRIPT>